<template>
  <div>
    {{msg}}
    <router-link to="/home">首页</router-link>
    <router-link to="/login">首页</router-link>
  <router-view></router-view>
  </div>
</template>

<script>
  import home from './home.vue'
  export default{
    data () {
      return {
        msg:'单文件组件'
      }
    }
  }
</script>
<style>
div{
  color:red;
}
</style>
